﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class RoundFight : RoundStateBase
{
   // private CharacterModel characterModel;

    private CharacterObj leftObj;
    private CharacterObj rightObj;

    public RoundFight(RoundStateController controller) : base(controller)
    {
        roundType = RoundType.RoundFight;
     
    }

    public override void Init()
    {
        //characterModel = ModelManager.Instance.GetModel<CharacterModel>();
        leftObj = LBattleFacade.Instance.GetLeftHeroObj();
        rightObj = LBattleFacade.Instance.GetRightHeroObj();
    }

    public override void Relese()
    {

    }

    public override void Update()
    {
        //获取角色进行动画播放
        leftObj.PlayAnim(1001);

        rightObj.PlayAnim(2001);

        //if(播放完切换到下一状态)
        m_Controller.SetState(RoundType.RoundAttackBefor);

    }
}
